﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hugo
{
    class LanguageUIOption : UIOption
    {
        private string translationStr;
        public LanguageUIOption(string p, string languageAbbr, System.Windows.Media.Imaging.BitmapSource bitmapSource) : base(p,bitmapSource)
        {
            this.translationStr = "en|" + languageAbbr;
        }

        public override void wasSelected()
        {
            GlobalSettings.translation = translationStr;
            MainWindow.popAllPages();
        }
    }
}
